package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

import java.util.Date;

/**
 * 车友会人员表 cheyou
 * 
 * @author ruoyi
 * @date 2019-07-16
 */
public class Cheyou extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 车友会人员Id */
	@Excel(name = "车友会人员Id")
	private Integer cheyouId;
	/** 车友会Id */
	@Excel(name = "车友会Id")
	private Integer cheyouhuiId;
	/** 人员ID */
	@Excel(name = "人员ID")
	private Long addPersonID;
	/** 状态 */
	@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
	private Integer status;
	/** 创建时间 */
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date createTime;
	/** 修改时间 */
	@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date updateTime;
	/** 扩展字段 */
	@Excel(name = "扩展字段")
	private String attribute;
	//车友会实体
	private Cheyouhui cheyouhui;
	//会员信息
	private SysUser sysUser;

	public void setCheyouId(Integer cheyouId) 
	{
		this.cheyouId = cheyouId;
	}

	public Integer getCheyouId() 
	{
		return cheyouId;
	}
	public void setCheyouhuiId(Integer cheyouhuiId)
	{
		this.cheyouhuiId = cheyouhuiId;
	}

	public Integer getCheyouhuiId()
	{
		return cheyouhuiId;
	}
	public void setAddPersonID(Long addPersonID)
	{
		this.addPersonID = addPersonID;
	}

	public Long getAddPersonID()
	{
		return addPersonID;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}

	public void setAttribute(String attribute) 
	{
		this.attribute = attribute;
	}

	public String getAttribute() 
	{
		return attribute;
	}
	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cheyouId", getCheyouId())
            .append("cheyouhuiId", getCheyouhuiId())
            .append("addPersonID", getAddPersonID())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("attribute", getAttribute())
            .toString();
    }


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public Date getUpdateTime() {
		return updateTime;
	}


	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Cheyouhui getCheyouhui() {
		return cheyouhui;
	}

	public void setCheyouhui(Cheyouhui cheyouhui) {
		this.cheyouhui = cheyouhui;
	}

	public SysUser getSysUser() {
		return sysUser;
	}

	public void setSysUser(SysUser sysUser) {
		this.sysUser = sysUser;
	}
}
